home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 2 / CD ACTUAL VOL 2.iso / kernels / makedisk.144 < prev    next >
Encoding:
Text File  |  1995-09-10  |  619 b   |  24 lines

  1. #!/bin/sh
  2. # This makes a bootkernel disk in /dev/fd0 from a kernel image.
  3. #
  4. # Run this in a directory containing the kernels you're gonna use, and a
  5. # subdirectory with a master image of the bootkernel disk.
  6. #
  7. # This is the command to use:
  8. #
  9. # makedisk kernel_image disk_size
  10. #          ^^           ^^^^^^^^^ This is 1440 or 1200
  11. #          ^^^^^ This is the name (and maybe path to) the kernel you're going
  12. #                to use, such as scsinet/zImage.
  13. #
  14.  
  15. mkdisk() {
  16.  makedisk $1/zImage 1440
  17.  dd if=/dev/fd0 bs=1024 count=600 > /cdrom/bootdsks.144/$2
  18. }
  19.  
  20. for dir in *.b ; do
  21.  mkdisk $dir `basename $dir .b`
  22. done
  23.